From f98e0b53421e73ef20d6fc29a2c54447bbb9ec14 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Wed, 24 Jul 2013 02:31:23 +0000 Subject: [PATCH] Roll back part of previous change. This should be a local time. Tested with a variety of TZ values and seems OK now. --- gpsbabel/trackfilter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/trackfilter.cc b/gpsbabel/trackfilter.cc index 2cc862ce2..b66cab2b9 100644 --- a/gpsbabel/trackfilter.cc +++ b/gpsbabel/trackfilter.cc @@ -387,7 +387,7 @@ trackfilter_split_init_rte_name(route_head *track, const QDateTime dt) char buff[128], tbuff[128]; struct tm tm; - time_t time = dt.toUTC().toTime_t(); + time_t time = dt.toTime_t(); tm = *localtime(&time); (opt_interval != 0) ? -- 2.30.2